// 子仓库示例
import { createSlice } from "@reduxjs/toolkit";

export const example = createSlice({
    name: 'example',
    initialState: {
        num: 1
    },
    reducers: {
        addOne: (state) => {
            state.num += 1
        }
    }
})

export const { addOne } = example.actions
export default example.reducer